import styled from 'styled-components'

const CardWrapper = styled.div `
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    width: ${ props => props.width };
    height: ${ props => props.height };
    background-color:${ props => props.bgColor };
    border-radius: .2rem;
    padding: .2rem;
    margin-bottom: .2rem;
    .left {
        display: flex;
        margin-right: .2rem;
    }
    .center {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 1.9rem;
        height: 100%;
        .title {
            font-weight: 500;
            font-size: .16rem;
        }
        .info {
            font-size: .12rem;
            color: #999999;
        }
    }
    .right {
        display: flex;
    }
`

export {
    CardWrapper
}